package com.primb.androidlibs.override;

import com.github.mikephil.charting.data.Entry;
import com.github.mikephil.charting.formatter.IValueFormatter;
import com.github.mikephil.charting.utils.ViewPortHandler;
import com.primb.androidlibs.utils.FormatUtils;

/**
 * Created by JKWANG-PC on 2016/11/21.
 */

public class ChartValueFormatter implements IValueFormatter {

    @Override
    public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {
        return FormatUtils.convertToDouble(value + "", 0) + "";
    }
}
